﻿''==========================================
'' 文件：DeviceRestartTime.vb
'' 作者：李大龙
'' 日期：2011-1-06
'' 版本：v1.0
'' 描述：设备启动和停止时间实体模型

''' <summary>
''' 设备启动和停止时间
''' </summary>
''' <remarks></remarks>
Public Class DeviceRestartTime

    Private _name As String

    Public Property Name() As String
        Get
            Return _name
        End Get
        Set(ByVal value As String)
            _name = value
        End Set
    End Property

    Private _netId As Integer
    ''' <summary>
    ''' 设备编号
    ''' </summary>
    Public Property NetID() As Int16
        Get
            Return _netId
        End Get
        Set(ByVal value As Int16)
            _netId = value
        End Set
    End Property


    Public ReadOnly Property IsChanged() As String
        Get
            Return IIf(_isNew = 1, "是", "否")
        End Get

    End Property

    Private _isNew As Integer
    ''' <summary>
    ''' 是否是新设备第一次启动
    ''' </summary>
    Public Property IsNew() As Integer
        Get
            Return _isNew
        End Get
        Set(ByVal value As Integer)
            _isNew = value
        End Set
    End Property

    Private _lasttime As DateTime

    ''' <summary>
    ''' 断电时间
    ''' </summary>
    Public Property LastTime() As DateTime
        Get
            Return _lasttime
        End Get
        Set(ByVal value As DateTime)
            _lasttime = value
        End Set
    End Property

    Private _restartTime As DateTime

    ''' <summary>
    ''' 设备开启的时间
    ''' </summary>
    Public Property RestartedTime() As DateTime
        Get
            Return _restartTime
        End Get
        Set(ByVal value As DateTime)
            _restartTime = value
        End Set
    End Property

    Private _firstTime As DateTime

    ''' <summary>
    ''' 第一次上电时间
    ''' </summary>
    ''' <value></value>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Public Property FirstTime() As DateTime
        Get
            Return _firstTime
        End Get
        Set(ByVal value As DateTime)
            _firstTime = value
        End Set
    End Property

End Class
